package com.ruoyi.hospital.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 *  科室管理对象 department
 * 
 * @author 天天困
 * @date 2025-08-13
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class Department extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 科室ID，主键自增 */
    private Long id;
    @Excel(name = "科室图片地址") // 如需导出，添加Excel注解
    private String url;
    /** 科室名称 */
    @Excel(name = "科室名称")
    private String name;
    private String diseaseNames;//科室所包含的疾病名称

    /** 删除标记：0未删除，1已删除 */
    private Integer del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("del", getDel())
            .toString();
    }
}
